package Iterator;

import java.util.ArrayList;
import java.util.Iterator;

public class PancakeHouseMenu implements Menu{
    ArrayList menuItems;


    public PancakeHouseMenu() {
        menuItems = new ArrayList();
        addItem("KB","pancakes with",true,2.99);
        addItem("Regular","pancakes with eggs",false,2.99);
        addItem("Black","fresh fuit",false,3.49);
    }

    public void addItem(String name, String description, boolean vegetarian, double price) {
        MenuItem menuItem = new MenuItem(name, description, vegetarian, price);
        menuItems.add(menuItem);
    }

    public Iterator createIterator() {
        return menuItems.iterator();
    }

/*    public ArrayList getMenuItems() {
        return menuItems;
    }*/
}
